package com.software.sqlite.service;

import com.software.sqlite.api.admin.v1.vo.AdminV1Result;
import com.software.sqlite.entity.TbProductInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 2021-04-08 21:20 admin
 */
public interface ITbProductInfoService {

    /**
     * 根据uuid获取商品
     * @param uuid
     * @return
     */
    TbProductInfo getByUUId(String uuid);
    /**
     * 添加/修改
     * @param model
     * @return
     */
    AdminV1Result edit(TbProductInfo model);

    /**
     * 导入Excel
     * @param model
     * @throws Exception
     */
    void importData(TbProductInfo model)throws Exception;

    /**
     * 导出Excel
     * @param model
     * @throws Exception
     */
    String exportData(TbProductInfo model)throws Exception;

    /**
     * 上传Excel
     * @param file
     * @param paramsMap
     * @param request
     * @return
     */
    String[] uploadExcel(MultipartFile file, Map<String, Object> paramsMap, HttpServletRequest request);

}
